<!DOCTYPE html>
<html>

<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
  <meta http-equiv="Pragma" content="no-cache" />
  <meta http-equiv="Expires" content="0" />
  <title>Home</title>
  <!-- 引入样式文件 -->
  <link rel="stylesheet" href="./lib/vant.min.css" />
  <script>
    document.write('<link rel="stylesheet" href="./css/styles.css?v=' + new Date().getTime() + '" />')
  </script>
</head>

<body>
  <div id="home">

    <div class="box">

      <div class="tit">AAAA</div>

      <van-button round block type="info" @click="to_form">填写</van-button>

    </div>

  </div>
  <script src="./lib/vue.min.js"></script>
  <script src="./lib/vant.min.js"></script>
  <script src="./lib/jquery.min.js"></script>
  <script src="./lib/html5-px2rem.js"></script>
  <script src="./js/api.js"></script>
  <script>
    //判断是否登录
    let token = window.localStorage.fangyi_token;
    console.log('token', token);
    var app = new Vue({
      el: '#home',
      data: {
        user: {},
      },
      created(){
        api.init();
        console.log('vue created');
      },
      methods: {
        to_form(){
          console.log('to_form');
          api.abc('abc--');
        },
      },
    });
    Vue.use(vant.Lazyload);
  </script>
</body>

</html>